package org.dromara.work.domain.bo;

import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import java.util.Date;

/**
 * 备案信息业务对象 beian_info
 *
 * @author Chen
 * @date 2024-01-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DmNameFileSaveBo extends BaseEntity {

    /**
     * $column.columnComment
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 备案标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 批文号
     */
    @NotBlank(message = "批文号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pwh;

    /**
     * 批准日期
     */
    private Date pzsj;

    /**
     * 批复文件
     */
    @NotBlank(message = "批复文件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pfwj;


    /**
     * 备注
     */
    private String remark;

    /**
     * 地名ID
     */
    private String[] dmIds;


}
